package hku.cs.lunuo.rank;


public class Sbi extends Voter {

	@Override
	public Label vote(VotedUnit u, VotedGlobal g) {
		int falseCases = u.tf.getFlsTimes();
		int trueCases = u.tf.getTruTimes();
		float susc;
		if (falseCases == 0 && trueCases == 0)
			susc = 0;
		else
			susc = (float) falseCases
					/ (falseCases + trueCases);
		
		return new DefaultLabel(susc);
	}
}
